package cn.edu.sjtu.blank.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {
  SUCCESS("200", "请求成功"),

  NO_TASK_WAITING("302", "队列中没有等待的任务"),
  TASK_OFFER_ERROR("500", "任务未能成功加入队列"),
  TASK_START_ERROR("400", "任务未能成功执行"),

  SERVER_ERROR("400", "请求错误"),
  UNKNOWN_ERROR("500", "服务器错误");

  private String code;
  private String message;

  ResultEnum(String code, String message) {
    this.code = code;
    this.message = message;
  }
}
